package com.wf.mapper;

import com.wf.domain.SysPermission;
import com.wf.domain.SysRole;
import com.wf.domain.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wf.dto.LoginDTO;
import com.wf.dto.PageDTO;
import com.wf.vo.AdminVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author mpk16
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-10-02 09:54:26
* @Entity com.wf.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("select * from sys_user where username=#{username} and is_deleted=0")
    SysUser selectByUsername(String username);

    List<SysRole> getRolesByUserId(String userId);

    List<SysPermission> getPermissionByRoleId(String roleId);

    List<AdminVO> getAdminList(PageDTO pageDTO);
}




